var webpack = require('webpack');
//var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
  entry: __dirname+'/app/js/main.js',
  output: {
      path: __dirname+'/dist',
      /*path: __dirname+'/test',*/
    filename: 'anychat4html5.js'
  },
  module: {
    loaders: [
      {
        test: /\.json$/,
        loader: "json-loader"
      },
      {
      	test: /\.css$/, 
      	loader: 'style!css'
      },
      {
        test: /\.ts$/,
        loader:'ts-loader'
      }

    ]
  },
  plugins: [
    new webpack.BannerPlugin('Copyright (c) 2005--2017 BaiRuiTech.Co.Ltd. All rights reserved.'),
    /*new HtmlWebpackPlugin()
    /*new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    })*/
  ],
  resolve: {
    extensions: ['','.ts', '.js']
  }
}